#include <stdio.h>

#include "../rid.h"

int
main(int argc, char *argv[])
{
	Rid id1;
	Rid id2;

	/* set both Rids to random values */
	rid_set(id1, NULL);
	rid_set(id2, NULL);

	/* rid_cmp () return 0 if both Rids are equal, here they should not
	 * be equal.
	 */
	if (!rid_cmp(id1, id2))
		printf("this should not be printed!\n");

	/* copy id1 into id2 */
	rid_set(id2, id1);

	if (!rid_cmp(id1, id2))
		printf("this WILL be printed!\n");

	return 0;
}
